export interface FromEntity {
  type: 'fill' | 'click' | 'members' | 'select' | 'picke';
  selector: string;
  name: string;
  label?: string;
  value?: any;
  err_msg?: string[];
  [key: string]: any;
}
export interface TestResultEntity {
  id: string;
  type: 'input' | 'text' | 'class';
  selector: string;
  des: string;
  value?: string;
}
export interface TestTableEntity {
  selector: string;
  result: {
    label: string;
    value: string;
  }[]
}
export interface TestPageEntity {
  pageUrl?: string;
  from?: FromEntity[];
  result?: TestResultEntity[];
  table?: TestTableEntity;
  [key: string]: any;
}
export interface TestConfigEntity {
  title: string;
  pageUrl: string;
  from: FromEntity[];
  testPage: TestPageEntity;
  btnGroup?: FromEntity[]
  [key: string]: any;
}

export interface AddTemplateConfigEntity {
  title: string;
  dialogTitle: string;
  pageUrl?: string;
  screenshotName: string;
  operation: FromEntity;
  btnGroup: FromEntity[];
  from: FromEntity[];
  testPage: {
    pageUrl?: string;
    btnGroup?: FromEntity[];
    table: TestTableEntity;
  };
}